home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_actor_vulture.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
1KB
|
59 lines
# Jones 3D Cog Script
#
# actor_Vulture.cog
#
# [MDR]
#
# Data setup and special flap anim for vultures.
#
# (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
#
# ========================================================================================
symbols
message created
message sighted
message timer
end
# ========================================================================================
code
# .................................................................................
created:
AISetSubMode(GetSenderRef(), 0x20000); # Add SUBMODE_SEMICONTINUOUSMOTION
return;
# .................................................................................
sighted:
SetThingTimer(GetSenderRef(), 5);
return;
# .................................................................................
timer:
if ( IsModePlaying(GetSenderRef(), 61) > 0 ) # Vulture uses SITH_PUPPETADDIN_ACTIVATEHIGH for flapping
{
StopMode(GetSenderRef(), 61, 0.0);
}
else
{
if (Rand() < 0.5)
{
PlayMode(GetSenderRef(), 61, 0);
}
}
SetThingTimer(GetSenderRef(), RandBetween(3, 6));
return;
end